﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework
{
    [Map("BindingBase")]
    [Map("Binding")]
    [Map("BindingExpression")]
    [Map("BindingExpressionBase")]
    [Map("BindingOperations")]
    public class Binding
    {
        public Base Target;

        [Map("Source")]
        [Map("ElementName")]
        [Map("RelativeSource ")]
        public Base Source;
        public int TargetProperty;
        public int SourceProperty;
        public Convert Converter;
        public BindingMode Mode;

        [Map("PropertyPath")]
        public string Path;
    }

    public enum BindingMode
    {
        OneWay, TwoWay, oneTime
    }


    public delegate object Convert(object source);


}
